package com.freight.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.freight.core.common.constant.CommonConstant;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.ColumnTransformer;

@Data
public class DriverLicenseVo {

    @ApiModelProperty(value = "用户id")
    public Long userId;

    @ApiModelProperty(value = "证件状态 0未认证 1已认证 2审核中 3已过期 4已注销")
    private Integer driverUserStatus ;

    @ApiModelProperty(value = "驾驶证号")
    @ColumnTransformer(read = "AES_DECRYPT(UNHEX(num),'freight')", write = "HEX(AES_ENCRYPT(?, 'freight'))")
    private String num;




}
